package com.yyl.weibospider.gather.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class JbdcUtils {
	public static Connection getConnection() throws Exception {

		Class.forName("com.mysql.jdbc.Driver");

		Connection con = (Connection) DriverManager.getConnection(
				"jdbc:mysql://localhost:3306/weibo_gether", "root", "root");
		return con;
	}

}
